﻿eventModule.controller("vacancyController", function ($scope, $location, EventService) {
    $scope.add = function (vacancy) {
        EventService.addVacancy(vacancy).then(function () { $location.url('/Vacancy/List'); }, function ()
        { alert('Error Occured.') });
    };
});